#ifndef SearchResultDialog_h__
#define SearchResultDialog_h__

#include "Global.h"




#include "../item/Item.h"
#include "../EquipIcon.h"

class SearchResultDialog
: public ModelDialog
, public CCBMemberVariableAssigner
, public CCBSelectorResolver
, public CCNodeLoaderListener
{
public:
	CCB_STATIC_NEW_AUTORELEASE_OBJECT_WITH_INIT_METHOD(SearchResultDialog, create);
	SearchResultDialog();
	~SearchResultDialog();
    
	bool init();
	void onEnter();
	void onExit();
	void refresh();
	void touchScreen();
    
	virtual SEL_MenuHandler onResolveCCBCCMenuItemSelector(CCObject * pTarget, CCString * pSelectorName){return NULL;}
	virtual SEL_CCControlHandler onResolveCCBCCControlSelector(CCObject * pTarget, CCString * pSelectorName){return NULL;}
	virtual bool onAssignCCBMemberVariable(CCObject * pTarget, CCString * pMemberVariableName, CCNode * pNode);
	virtual void onNodeLoaded(CCNode * pNode, CCNodeLoader * pNodeLoader){}
    
protected:
	
private:
	CCLabelTTF* mEnergy;
	CCLabelTTF* mExp;
	CCLabelTTF* mCoin;
	CCLabelTTF* mDesc;
	EquipIcon* itemIcon;
};
#endif // SearchResultDialog_h__
